import Vue from 'vue'
import VueRouter from 'vue-router'
import Login from "@/views/Login";
import product from "@/views/Product";
import ProductDetail from "@/views/ProductDetail";
import MyCart from "@/views/MyCart";
import Order from "@/views/Order";


Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'Login',
    component: Login
  },

  {
    path: '/product',
    name: 'product',
    component: product
  },

  {
    path: '/product/detail',
    name: 'ProductDetail',
    component: ProductDetail
  },

  {
    path: '/mycart',
    name: 'MyCart',
    component: MyCart
  },

  {
    path: '/order',
    name: 'Order',
    component: Order
  }
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
